package com.agp.entity;

import com.huaweicloud.sdk.iot.device.service.AbstractService;
import com.huaweicloud.sdk.iot.device.service.Property;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class EnvironmentService extends AbstractService {

    @Property(writeable = false)
    private Integer temperature;//温度

    @Property(writeable = false)
    private Integer humidity;//湿度



/*    @DeviceCommand(name = "ringAlarm")
    public CommandRsp alarm(Map<String, Object> paras) {
        int duration = (int) paras.get("duration");
        log.info("ringAlarm duration = {}", duration);
        return new CommandRsp(0);
    }*/

}
